package com.dyna.api.event;

import com.dyna.api.domain.dto.UserLoginInfo;
import com.dyna.domain.dto.LoginUser;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * @author zhoucaiwang
 * @date 2023/8/17
 */

@Getter
public class LoginUserEvent extends ApplicationEvent {

    private final UserLoginInfo loginInfo;
    private final LoginUser user;

    public LoginUserEvent(UserLoginInfo source, LoginUser user) {
        super(source);
        this.loginInfo = source;
        this.user = user;
    }

}
